// 入口js
import React from 'react';
import ReactDOM from 'react-dom';
// import {Button} from 'antd';

// 引入react路由及组件
import {HashRouter, Route, Switch} from 'react-router-dom';
import Register from './containers/register/register.jsx';
import Login from './containers/login/login.jsx';
import Main from './containers/main/main.jsx';

import {Provider} from 'react-redux'
import store from './redux/store'
import './assets/css/index.less'

ReactDOM.render(
    <Provider store={store}><HashRouter>
        <Switch>
            <Route path={'/register'} component={Register}></Route>
            <Route path={'/login'} component={Login}></Route>
            <Route component={Main}></Route>
        </Switch>
    </HashRouter></Provider>
    , document.getElementById('root'));
